package com.ruoyi.business.domain;

import java.sql.Time;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 每日车次对象 daily_train
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
public class DailyTrain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 车次编号 */
    @Excel(name = "车次编号")
    private String code;

    /** 车次类型 */
    @Excel(name = "车次类型")
    private String type;

    /** 始发站 */
    @Excel(name = "始发站")
    private String start;

    /** 始发站拼音 */
    @Excel(name = "始发站拼音")
    private String startPinyin;

    /** 出发时间 */
    @JsonFormat(pattern = "hh:mm:ss")
    @Excel(name = "出发时间", width = 30, dateFormat = "HH:mm:ss")
    private Time startTime;

    /** 终点站 */
    @Excel(name = "终点站")
    private String end;

    /** 终点站拼音 */
    @Excel(name = "终点站拼音")
    private String endPinyin;

    /** 到站时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "到站时间", width = 30, dateFormat = "HH:mm:ss")
    private Time endTime;

    /** 车次编号列表，用于批量查询 */
    private List<String> trainCodes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStart(String start) 
    {
        this.start = start;
    }

    public String getStart() 
    {
        return start;
    }
    public void setStartPinyin(String startPinyin) 
    {
        this.startPinyin = startPinyin;
    }

    public String getStartPinyin() 
    {
        return startPinyin;
    }
    public void setStartTime(Time startTime)
    {
        this.startTime = startTime;
    }

    public Time getStartTime()
    {
        return startTime;
    }
    public void setEnd(String end) 
    {
        this.end = end;
    }

    public String getEnd() 
    {
        return end;
    }
    public void setEndPinyin(String endPinyin) 
    {
        this.endPinyin = endPinyin;
    }

    public String getEndPinyin() {return endPinyin;}
    public void setEndTime(Time endTime) {this.endTime = endTime;}

    public Time getEndTime()
    {
        return endTime;
    }

    public List<String> getTrainCodes() {
        return trainCodes;
    }

    public void setTrainCodes(List<String> trainCodes) {
        this.trainCodes = trainCodes;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("date", getDate())
            .append("code", getCode())
            .append("type", getType())
            .append("start", getStart())
            .append("startPinyin", getStartPinyin())
            .append("startTime", getStartTime())
            .append("end", getEnd())
            .append("endPinyin", getEndPinyin())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
